package com.acme.bankapp.domain.bank.exceptions;

import com.acme.bankapp.domain.bank.Account;

public class NotEnoughFundsException extends BankException {
    private double maxAmount;
    private Account account;

    public NotEnoughFundsException(Account account, double maxAmount) {
        this.account = account;
        this.maxAmount = maxAmount;
    }

    public double getMaxAmount() {
        return maxAmount;
    }

    public Account getAccount() {
        return account;
    }
}
